/*
SteelNzb
Copyright (C) 2008  Wessel v. Staal

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

#ifndef STATS_INCLUDED
#define STATS_INCLUDED

#include <time.h>

void* stats_createStats();
void stats_freeStats(void* stats);

void stats_setFileCount(void* stats, int value);
long stats_getFileCount(void* stats);
void stats_setProcessed(void* stats, int value);
long stats_getProcessed(void* stats);
void stats_addProcessed(void* stats, int value);
void stats_setFailedCount(void* state, int value);
int stats_getFailedCount(void* state);
void stats_addFailedCount(void* state, int value);
void stats_setCurrentNzbFile(void* state, char* value);
char* stats_getCurrentNzbFile(void* state, char* dest);
int stats_getBytesDownloaded(void* state);
void stats_setBytesDownloaded(void* state, int value);
void stats_addBytesDownloaded(void* state, int value);
int stats_getDownloadSpeed(void* stats);
int stats_getIsPaused(void* stats);
void stats_setIsPaused(void* stats, int paused);
int stats_getProgress(void* stats);

#endif


